package aooO.crm.Service.impl;

import aooO.crm.Service.ContactsRemarkService;
import aooO.crm.mapper.ContactsRemarkMapper;
import aooO.crm.pojo.Contacts;
import aooO.crm.pojo.ContactsRemark;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContactsRemarkServiceImpl implements ContactsRemarkService {

    @Autowired
    ContactsRemarkMapper contactsRemarkMapper;

    @Override
    public List<ContactsRemark> selectContactsRemarkForDetailByContactsId(String contactsId) {
        return contactsRemarkMapper.selectContactsRemarkForDetailByContactsId(contactsId);
    }

    @Override
    public int insertContactsRemark(ContactsRemark contactsRemark) {
        return contactsRemarkMapper.insertContactsRemark(contactsRemark);
    }

    @Override
    public int deleteContactsRemarkByContactsId(String[] contactsIds) {
        return contactsRemarkMapper.deleteContactsRemarkByContactsId(contactsIds);
    }

    @Override
    public int deleteContactsRemarkById(String id) {
        return contactsRemarkMapper.deleteContactsRemarkById(id);
    }

    @Override
    public int updateContactsRemark(ContactsRemark contactsRemark) {
        return contactsRemarkMapper.updateContactsRemark(contactsRemark);
    }
}
